package com.indexingsystem.boss.entity;

import java.io.Serializable;
import java.util.Date;

public class Tokens implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String tokenId;

    private String clientId;

    private String userId;

    private String scope;

    private String accessToken;

    private Integer expiresIn;

    private String refreshToken;

    private Integer refreshExpiresIn;

    private Date createDate;

    public String getTokenId() {
        return tokenId;
    }

    public void setTokenId(String tokenId) {
        this.tokenId = tokenId == null ? null : tokenId.trim();
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId == null ? null : clientId.trim();
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope == null ? null : scope.trim();
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken == null ? null : accessToken.trim();
    }

    public Integer getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(Integer expiresIn) {
        this.expiresIn = expiresIn;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken == null ? null : refreshToken.trim();
    }

    public Integer getRefreshExpiresIn() {
        return refreshExpiresIn;
    }

    public void setRefreshExpiresIn(Integer refreshExpiresIn) {
        this.refreshExpiresIn = refreshExpiresIn;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
    
    public Tokens() {
		// TODO Auto-generated constructor stub
	}

	public Tokens(String tokenId, String clientId, String userId, String scope, String accessToken, Integer expiresIn,
			String refreshToken, Integer refreshExpiresIn, Date createDate) {
		super();
		this.tokenId = tokenId;
		this.clientId = clientId;
		this.userId = userId;
		this.scope = scope;
		this.accessToken = accessToken;
		this.expiresIn = expiresIn;
		this.refreshToken = refreshToken;
		this.refreshExpiresIn = refreshExpiresIn;
		this.createDate = createDate;
	}

	@Override
	public String toString() {
		return "Tokens [tokenId=" + tokenId + ", clientId=" + clientId + ", userId=" + userId + ", scope=" + scope
				+ ", accessToken=" + accessToken + ", expiresIn=" + expiresIn + ", refreshToken=" + refreshToken
				+ ", refreshExpiresIn=" + refreshExpiresIn + ", createDate=" + createDate + "]";
	}
    
    
}